<!DOCTYPE html>
<html>
<#include "../inc/head.html"/>
<body>
<#include "../inc/header.html"/>
  <div class="main layui-clear"> 
   <div class="wrap"> 
    <div class="content detail"> 
     <div class="fly-panel detail-box"> 
      <h1>${data.title}</h1> 
      <p>
        <span><a rel="nofollow"  href="/u/${data.userId?c}">${data.userName}</a></span>
        <span>${data.formatCreateTime}</span>
        <span class="tag tag-sm"><a href="/category/${data.categoryId?c}/1">${data.category}</a></span>
        <#if data.tagList??><#list data.tagList as tag>
        <span class="tag tag-sm"><a href="/tag/${tag}/1">${tag}</a></span>
        </#list></#if>
        <span class="fly-list-hint"> 
          <i class="iconfont" title="评">&#xe60c;</i> ${data.commentCount?c}
          <i class="iconfont" title="阅">&#xe60b;</i> ${data.viewCount?c}
        </span>
      </p>

      <#if data.summary??> 
      <div class="detail-about"> 
         ${data.summary}
      </div>
      </#if>
      <div class="detail-body photos">
        ${data.content}
      </div> 
     </div> 
     <div class="fly-panel detail-box" style="padding-top: 0;"> 
      <ul class="comment photos" id="comment" flowpage="/post/comments/${data.id?c}/{id}" template-id="comment_list_tpl"> 
      </ul>
      <script id="comment_list_tpl" type="text/html">
       {{#  layui.each(d.data, function(index, item){ }}
       <li data-id="{{item.id}}">
        <div class="detail-about detail-about-reply"> 
         <a class="jie-user" rel="nofollow"  href="/u/{{item.userId}}"> <img src="{{item.userAvatar}}" alt="{{item.userName}}" onerror="javascript:this.src='/webjars/images/avatar0.png';" /> 
           <cite> <i>{{item.userName}}</i> </cite> 
         </a> 
         <div class="detail-hits"> 
          <span>{{item.formatCreateTime}}</span> 
         </div> 
        </div> 
        <div class="detail-body comment-body">{{item.content}}</div> 
        <div class="comment-reply"> 
         <span class="comment-zan " type="zan"> <i class="iconfont icon-zan"></i> <em>{{item.likeCount}}</em> </span> 
         <span type="reply"> <i class="iconfont icon-svgmoban53"></i> 回复 </span> 
        </div> 
        </li> 
       {{#  }); }}
       {{#  if(d.data.length === 0){ }}
        暂无评论，快抢沙发~
       {{#  } }} 
      </script> 
      <div class="layui-form layui-form-pane"> 
       <form action="/jie/reply/" method="post"> 
        <div class="layui-form-item layui-form-text"> 
         <a name="comment"></a> 
         <div class="layui-input-block"> 
          <textarea id="L_content" name="content" required="" lay-verify="required" placeholder="我要回答" class="layui-textarea fly-editor" style="height: 150px;"></textarea> 
         </div> 
        </div> 
        <div class="layui-form-item"> 
         <input type="hidden" name="jid" value="10962" /> 
         <input type="hidden" name="daPages" value="1" /> 
         <button class="layui-btn" lay-filter="*" lay-submit="">提交回答</button> 
        </div> 
       </form> 
      </div> 
     </div> 
    </div> 
   </div> 
   <div class="edge"> 
    <dl class="fly-panel fly-list-one"> 
     <dt class="fly-panel-title">
      热门帖子
     </dt> 
     <#list hotPosts as item>
     <dd>
        <a href="/post/${item.id?c}" target="_blank">${item.title}</a> 
        <span><i class="iconfont">&#xe60b;</i>${item.viewCount?c}</span>
     </dd>
     </#list>
    </dl> 
   </div>
  </div>
 <#include "../inc/footer.html"/>
 </body>
</html>